<script language='javascript' type='text/javascript' src="<?=base_url('price_files')?>scripts/price_files.js"></script>
<?php echo form_open($this->price_files_list_model->url_prefix); ?>
<?if($msg){?><center><div class="messageBox"><?=$msg?></div></center><?}?>
<table width="100%" border="0" align="center" cellpadding="1" cellspacing="1" class="text">
  <tr align="center" id="listTableHeader"> 
	<td width="30"><a href="javascript:price_files.sortColumn(<?=$start?>, 'id', '{language}')"{sort_id}>#</a></td>
    <td width="15"><input type="checkbox" onclick="common.mark_all_rows('uid[]', this.checked)" /></td>
    <td width="450"><a href="javascript:price_files.sortColumn(<?=$start?>, 'title', '{language}')"{sort_title}>Tiêu đề</a></td>
	<td width="250">Tên file</td>
	<td width="70">Trạng thái</td>
    <td width="100">Xử lý</td>
  </tr>
<?$i=1;foreach($items as $item){?>
  <tr class="row<?=($i==1)?'1':'2'?>">
	<td><?=$item->{PRICE_LISTS_ID}?></td>
    <td><input type="checkbox" name="uid[]" value="<?=$item->{PRICE_LISTS_ID}?>" /></td>
	<td align="left" style="font-weight:bold"><?=h($item->{PRICE_LISTS_TITLE})?></td>
	<td align="center"><?=h($item->image_path)?></td>
	<td align="center"><a href="#" onclick="common.switch_status('<?= site_url('admin_ajax/price_files.price_files.change_status/' . $item->{PRICE_LISTS_ID})?>', 'activediv_<?=$item->{PRICE_LISTS_ID}?>');"><div id = "activediv_<?=$item->{PRICE_LISTS_ID}?>" class="<?=$item->{PRICE_LISTS_STATUS} == 1 ? 'active_icon' : 'inactive_icon'?>"></div></a></td>
    <td>
        <a href="<?=site_url($this->price_files_list_model->url_prefix2.'/'.$start.'/'.$item->{PRICE_LISTS_ID})?>"><div class="edit_icon">|</div></a>
        <a href="javascript:price_files.deleteOne(<?=$start?>, <?=$item->{PRICE_LISTS_ID}?>, '{language}');"><div class="delete_icon"></div></a>
    </td>
  <tr>
<?$i=-$i;}?>
  <tr>
    <td colspan="7">
	<? if ($items) { if ($paging) { ?>
      <table class="adminlist" border="0" cellpadding="0" cellpadding="0" width="100%" class="PagingTable">
        <tr>
          <td class="pageCounter" width="100%" align="center">
            {paging}
          </td>
        </tr>
      </table>
	<? }} else { ?>
		<br />
		<?=$this->lang->line('not_found')?>
	<? } ?>
    </td>
  </tr>
</table>
</form>